package com.tech.zhidengxian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tech.zhidengxian.model.dataobject.CommentDO;
import com.tech.zhidengxian.model.dto.CommentDTO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<CommentDO> {
    default int insertComment(CommentDO commentDO){
        return insert(commentDO);
    }
    List<CommentDO> queryCommentListByGoodsId(Long goodsId);
}
